<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>38.14. Zend_Service_Yahoo</title>
<link rel="stylesheet" href="dbstyle.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="Programmer's Reference Guide">
<link rel="up" href="zend.service.html" title="Chapter 38. Zend_Service">
<link rel="prev" href="zend.service.technorati.html" title="38.13. Zend_Service_Technorati">
<link rel="next" href="zend.session.html" title="Chapter 39. Zend_Session">
<link rel="chapter" href="introduction.html" title="Chapter 1. Introduction to Zend Framework">
<link rel="chapter" href="zend.acl.html" title="Chapter 2. Zend_Acl">
<link rel="chapter" href="zend.auth.html" title="Chapter 3. Zend_Auth">
<link rel="chapter" href="zend.cache.html" title="Chapter 4. Zend_Cache">
<link rel="chapter" href="zend.config.html" title="Chapter 5. Zend_Config">
<link rel="chapter" href="zend.console.getopt.html" title="Chapter 6. Zend_Console_Getopt">
<link rel="chapter" href="zend.controller.html" title="Chapter 7. Zend_Controller">
<link rel="chapter" href="zend.currency.html" title="Chapter 8. Zend_Currency">
<link rel="chapter" href="zend.date.html" title="Chapter 9. Zend_Date">
<link rel="chapter" href="zend.db.html" title="Chapter 10. Zend_Db">
<link rel="chapter" href="zend.debug.html" title="Chapter 11. Zend_Debug">
<link rel="chapter" href="zend.dojo.html" title="Chapter 12. Zend_Dojo">
<link rel="chapter" href="zend.dom.html" title="Chapter 13. Zend_Dom">
<link rel="chapter" href="zend.exception.html" title="Chapter 14. Zend_Exception">
<link rel="chapter" href="zend.feed.html" title="Chapter 15. Zend_Feed">
<link rel="chapter" href="zend.filter.html" title="Chapter 16. Zend_Filter">
<link rel="chapter" href="zend.form.html" title="Chapter 17. Zend_Form">
<link rel="chapter" href="zend.gdata.html" title="Chapter 18. Zend_Gdata">
<link rel="chapter" href="zend.http.html" title="Chapter 19. Zend_Http">
<link rel="chapter" href="zend.infocard.html" title="Chapter 20. Zend_InfoCard">
<link rel="chapter" href="zend.json.html" title="Chapter 21. Zend_Json">
<link rel="chapter" href="zend.layout.html" title="Chapter 22. Zend_Layout">
<link rel="chapter" href="zend.ldap.html" title="Chapter 23. Zend_Ldap">
<link rel="chapter" href="zend.loader.html" title="Chapter 24. Zend_Loader">
<link rel="chapter" href="zend.locale.html" title="Chapter 25. Zend_Locale">
<link rel="chapter" href="zend.log.html" title="Chapter 26. Zend_Log">
<link rel="chapter" href="zend.mail.html" title="Chapter 27. Zend_Mail">
<link rel="chapter" href="zend.measure.html" title="Chapter 28. Zend_Measure">
<link rel="chapter" href="zend.memory.html" title="Chapter 29. Zend_Memory">
<link rel="chapter" href="zend.mime.html" title="Chapter 30. Zend_Mime">
<link rel="chapter" href="zend.openid.html" title="Chapter 31. Zend_OpenId">
<link rel="chapter" href="zend.paginator.html" title="Chapter 32. Zend_Paginator">
<link rel="chapter" href="zend.pdf.html" title="Chapter 33. Zend_Pdf">
<link rel="chapter" href="zend.registry.html" title="Chapter 34. Zend_Registry">
<link rel="chapter" href="zend.rest.html" title="Chapter 35. Zend_Rest">
<link rel="chapter" href="zend.search.lucene.html" title="Chapter 36. Zend_Search_Lucene">
<link rel="chapter" href="zend.server.html" title="Chapter 37. Zend_Server">
<link rel="chapter" href="zend.service.html" title="Chapter 38. Zend_Service">
<link rel="chapter" href="zend.session.html" title="Chapter 39. Zend_Session">
<link rel="chapter" href="zend.soap.html" title="Chapter 40. Zend_Soap">
<link rel="chapter" href="zend.test.html" title="Chapter 41. Zend_Test">
<link rel="chapter" href="zend.text.html" title="Chapter 42. Zend_Text">
<link rel="chapter" href="zend.timesync.html" title="Chapter 43. Zend_TimeSync">
<link rel="chapter" href="zend.translate.html" title="Chapter 44. Zend_Translate">
<link rel="chapter" href="zend.uri.html" title="Chapter 45. Zend_Uri">
<link rel="chapter" href="zend.validate.html" title="Chapter 46. Zend_Validate">
<link rel="chapter" href="zend.version.html" title="Chapter 47. Zend_Version">
<link rel="chapter" href="zend.view.html" title="Chapter 48. Zend_View">
<link rel="chapter" href="zend.xmlrpc.html" title="Chapter 49. Zend_XmlRpc">
<link rel="appendix" href="requirements.html" title="Appendix A. Zend Framework Requirements">
<link rel="appendix" href="coding-standard.html" title="Appendix B. Zend Framework Coding Standard for PHP">
<link rel="appendix" href="copyrights.html" title="Appendix C. Copyright Information">
<link rel="index" href="the.index.html" title="Index">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.introduction" title="38.14.1. Introduction">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.websearch" title="38.14.2. Searching the Web with Yahoo!">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.imagesearch" title="38.14.3. Finding Images with Yahoo!">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.videosearch" title="38.14.4. Finding videos with Yahoo!">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.localsearch" title="38.14.5. Finding Local Businesses and Services with Yahoo!">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.newssearch" title="38.14.6. Searching Yahoo! News">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.inlinkdatasearch" title="38.14.7. Searching Yahoo! Site Explorer Inbound Links">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.pagedatasearch" title="38.14.8. Searching Yahoo! Site Explorer's PageData">
<link rel="subsection" href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader"><table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">38.14. Zend_Service_Yahoo</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="zend.service.technorati.html">Prev</a> </td>
<th width="60%" align="center">Chapter 38. Zend_Service</th>
<td width="20%" align="right"> <a accesskey="n" href="zend.session.html">Next</a>
</td>
</tr>
</table></div>
<div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="zend.service.yahoo"></a>38.14. Zend_Service_Yahoo</h2></div></div></div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.introduction"></a>38.14.1. Introduction</h3></div></div></div>
<p>
            <code class="code">Zend_Service_Yahoo</code> is a simple API for using many of the Yahoo! REST APIs.
            <code class="code">Zend_Service_Yahoo</code> allows you to search Yahoo! Web search, Yahoo! News, Yahoo! Local, Yahoo!
            Images. In order to use the Yahoo! REST API, you must have a Yahoo! Application ID. To obtain an Application ID, please complete and submit the
            <a href="http://developer.yahoo.com/wsregapp/" target="_top">Application ID Request Form</a>.
        </p>
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.websearch"></a>38.14.2. Searching the Web with Yahoo!</h3></div></div></div>
<p>
            <code class="code">Zend_Service_Yahoo</code> enables you to search the Web with Yahoo! using the
            <code class="code">webSearch()</code> method, which accepts a string query parameter and an optional second parameter
            as an array of search options. For full details and an option list, please visit the
            <a href="http://developer.yahoo.com/search/web/V1/webSearch.html" target="_top">Yahoo! Web Search
            Documentation</a>. The <code class="code">webSearch()</code> method returns a
            <code class="code">Zend_Service_Yahoo_WebResultSet</code> object.
        </p>
<div class="example">
<a name="zend.service.yahoo.websearch.example-1"></a><p class="title"><b>Example 38.53. Searching the Web with Yahoo!</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;webSearch('PHP');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.imagesearch"></a>38.14.3. Finding Images with Yahoo!</h3></div></div></div>
<p>
            You can search for Images with Yahoo using <code class="code">Zend_Service_Yahoo</code>'s <code class="code">imageSearch()</code>
            method. This method accepts a string query parameter and an optional array of search options, as for the
            <a href="zend.service.yahoo.html#zend.service.yahoo.websearch" title="38.14.2. Searching the Web with Yahoo!"><code class="code">webSearch()</code> method</a>. For full details
            and an option list, please visit the
            <a href="http://developer.yahoo.com/search/image/V1/imageSearch.html" target="_top">Yahoo! Image Search
            Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.imagesearch.example-1"></a><p class="title"><b>Example 38.54. Finding Images with Yahoo!</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;imageSearch('PHP');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.videosearch"></a>38.14.4. Finding videos with Yahoo!</h3></div></div></div>
<p>
            You can search for videos with Yahoo using <code class="code">Zend_Service_Yahoo</code>'s <code class="code">videoSearch()</code>
            method. For full details and an option list, please visit the
            <a href="http://developer.yahoo.com/search/video/V1/videoSearch.html" target="_top">Yahoo! Video Search
            Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.videosearch.example-1"></a><p class="title"><b>Example 38.55. Finding videos with Yahoo!</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;videoSearch('PHP');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.localsearch"></a>38.14.5. Finding Local Businesses and Services with Yahoo!</h3></div></div></div>
<p>
            You can search for local businesses and services with Yahoo! by using the <code class="code">localSearch()</code> method.
            For full details, please see the
            <a href="http://developer.yahoo.com/search/local/V1/localSearch.html" target="_top">Yahoo! Local Search
            Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.localsearch.example-1"></a><p class="title"><b>Example 38.56. Finding Local Businesses and Services with Yahoo!</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;localSearch('Apple Computers', array('zip' =&gt; '95014'));
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.newssearch"></a>38.14.6. Searching Yahoo! News</h3></div></div></div>
<p>
            Searching Yahoo! News is simple; just use the <code class="code">newsSearch()</code> method, as in the following
            example. For full details, please see the
            <a href="http://developer.yahoo.com/search/news/V1/newsSearch.html" target="_top">Yahoo! News Search
            Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.newssearch.example-1"></a><p class="title"><b>Example 38.57. Searching Yahoo! News</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;newsSearch('PHP');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.inlinkdatasearch"></a>38.14.7. Searching Yahoo! Site Explorer Inbound Links</h3></div></div></div>
<p>
            Searching Yahoo! Site Explorer Inbound Links is simple; just use the <code class="code">inlinkDataSearch()</code>
            method, as in the following example. For full details, please see the
            <a href="http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html" target="_top">Yahoo!
            Site Explorer Inbound Links Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.inlinkdatasearch.example-1"></a><p class="title"><b>Example 38.58. Searching Yahoo! Site Explorer Inbound Links</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;inlinkDataSearch('http://framework.zend.com/');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.pagedatasearch"></a>38.14.8. Searching Yahoo! Site Explorer's PageData</h3></div></div></div>
<p>
            Searching Yahoo! Site Explorer's PageData is simple; just use the <code class="code">pageDataSearch()</code>
            method, as in the following example. For full details, please see the
            <a href="http://developer.yahoo.com/search/siteexplorer/V1/pageData.html" target="_top">Yahoo!
            Site Explorer PageData Documentation</a>.
        </p>
<div class="example">
<a name="zend.service.yahoo.pagedatasearch.example-1"></a><p class="title"><b>Example 38.59. Searching Yahoo! Site Explorer's PageData</b></p>
<div class="example-contents"><pre class="programlisting">&lt;?php
require_once 'Zend/Service/Yahoo.php';
$yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
$results = $yahoo-&gt;pageDataSearch('http://framework.zend.com/');
foreach ($results as $result) {
    echo $result-&gt;Title .'&lt;br /&gt;';
}
            </pre></div>
</div>
<br class="example-break">
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="zend.service.yahoo.classes"></a>38.14.9. Zend_Service_Yahoo Classes</h3></div></div></div>
<p>
            The following classes are all returned by the various Yahoo! searches. Each search type returns a
            type-specific result set which can be easily iterated, with each result being contained in a type result
            object. All result set classes implement the <code class="code">SeekableIterator</code> interface, allowing for easy
            iteration and seeking to a specific result.
            </p>
<div class="itemizedlist"><ul type="disc">
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet"><code class="code">Zend_Service_Yahoo_ResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.webresultset" title="38.14.9.2. Zend_Service_Yahoo_WebResultSet"><code class="code">Zend_Service_Yahoo_WebResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.imageresultset" title="38.14.9.3. Zend_Service_Yahoo_ImageResultSet"><code class="code">Zend_Service_Yahoo_ImageResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.videoresultset" title="38.14.9.4. Zend_Service_Yahoo_VideoResultSet"><code class="code">Zend_Service_Yahoo_VideoResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.localresultset" title="38.14.9.5. Zend_Service_Yahoo_LocalResultSet"><code class="code">Zend_Service_Yahoo_LocalResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.newsresultset" title="38.14.9.6. Zend_Service_Yahoo_NewsResultSet"><code class="code">Zend_Service_Yahoo_NewsResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.inlinkdataresultset" title="38.14.9.7. Zend_Service_Yahoo_InlinkDataResultSet"><code class="code">Zend_Service_Yahoo_InlinkDataResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.pagedataresultset" title="38.14.9.8. Zend_Service_Yahoo_PageDataResultSet"><code class="code">Zend_Service_Yahoo_PageDataResultSet</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.result" title="38.14.9.9. Zend_Service_Yahoo_Result"><code class="code">Zend_Service_Yahoo_Result</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.webresult" title="38.14.9.10. Zend_Service_Yahoo_WebResult"><code class="code">Zend_Service_Yahoo_WebResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.imageresult" title="38.14.9.11. Zend_Service_Yahoo_ImageResult"><code class="code">Zend_Service_Yahoo_ImageResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.videoresult" title="38.14.9.12. Zend_Service_Yahoo_VideoResult"><code class="code">Zend_Service_Yahoo_VideoResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.localresult" title="38.14.9.13. Zend_Service_Yahoo_LocalResult"><code class="code">Zend_Service_Yahoo_LocalResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.newsresult" title="38.14.9.14. Zend_Service_Yahoo_NewsResult"><code class="code">Zend_Service_Yahoo_NewsResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.inlinkdataresult" title="38.14.9.15. Zend_Service_Yahoo_InlinkDataResult"><code class="code">Zend_Service_Yahoo_InlinkDataResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.pagedataresult" title="38.14.9.16. Zend_Service_Yahoo_PageDataResult"><code class="code">Zend_Service_Yahoo_PageDataResult</code></a></p></li>
<li><p><a href="zend.service.yahoo.html#zend.service.yahoo.classes.image" title="38.14.9.17. Zend_Service_Yahoo_Image"><code class="code">Zend_Service_Yahoo_Image</code></a></p></li>
</ul></div>
<p>
        </p>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.resultset"></a>38.14.9.1. Zend_Service_Yahoo_ResultSet</h4></div></div></div>
<p>
                Each of the search specific result sets is extended from this base class.
            </p>
<p>
                Each of the specific result sets returns a search specific
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes.result" title="38.14.9.9. Zend_Service_Yahoo_Result">Zend_Service_Yahoo_Result</a> objects.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.resultset.totalResults"></a>38.14.9.1.1. Zend_Service_Yahoo_ResultSet::totalResults()</h5></div></div></div>
<p>
                    <code class="methodsynopsis"><span class="type">int </span><span class="methodname">totalResults</span>();</code>
                </p>
<p>
                    Returns the number of results returned for the search.
                </p>
</div>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.resultset.properties"></a>38.14.9.1.2. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.resultset.properties.table-1"></a><p class="title"><b>Table 38.15. Zend_Service_Yahoo_ResultSet</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_ResultSet" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>totalResultsAvailable</td>
<td>int</td>
<td>
                                    Total number of results found.
                                </td>
</tr>
<tr>
<td>totalResultsReturned</td>
<td>int</td>
<td>Number of results in the current result set</td>
</tr>
<tr>
<td>firstResultPosition</td>
<td>int</td>
<td>Position of the first result in this set relative to the total number of results.</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.webresultset"></a>38.14.9.2. Zend_Service_Yahoo_WebResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_WebResultSet</code> represents a Yahoo! Web Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_WebResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.imageresultset"></a>38.14.9.3. Zend_Service_Yahoo_ImageResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_ImageResultSet</code> represents a Yahoo! Image Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_ImageResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.videoresultset"></a>38.14.9.4. Zend_Service_Yahoo_VideoResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_VideoResultSet</code> represents a Yahoo! Video Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_VideoResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.localresultset"></a>38.14.9.5. Zend_Service_Yahoo_LocalResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_LocalResultSet</code> represents a Yahoo! Local Search result set.
            </p>
<div class="table">
<a name="zend.service.yahoo.classes.localresultset.table-1"></a><p class="title"><b>Table 38.16. Zend_Service_Yahoo_LocalResultSet Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_LocalResultSet Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody><tr>
<td>resultSetMapURL</td>
<td>string</td>
<td>The URL of a webpage containing a map graphic with all returned results plotted on it.</td>
</tr></tbody>
</table></div>
</div>
<br class="table-break"><div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_LocalResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.newsresultset"></a>38.14.9.6. Zend_Service_Yahoo_NewsResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_NewsResultSet</code> represents a Yahoo! News Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_NewsResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.inlinkdataresultset"></a>38.14.9.7. Zend_Service_Yahoo_InlinkDataResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_InlinkDataResultSet</code> represents a Yahoo! Inbound Link Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_InlinkDataResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.pagedataresultset"></a>38.14.9.8. Zend_Service_Yahoo_PageDataResultSet</h4></div></div></div>
<p>
                <code class="code">Zend_Service_Yahoo_PageDataResultSet</code> represents a Yahoo! PageData Search result set.
            </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
                    <code class="code">Zend_Service_Yahoo_PageDataResultSet</code> extends <a href="zend.service.yahoo.html#zend.service.yahoo.classes.resultset" title="38.14.9.1. Zend_Service_Yahoo_ResultSet">Zend_Service_Yahoo_ResultSet</a>
                </p></td></tr>
</table></div>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.result"></a>38.14.9.9. Zend_Service_Yahoo_Result</h4></div></div></div>
<p>
                Each of the search specific results is extended from this base class.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.result.properties"></a>38.14.9.9.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.result.properties.table-1"></a><p class="title"><b>Table 38.17. Zend_Service_Yahoo_Result Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_Result Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Title</td>
<td>string</td>
<td>Title of the Result item</td>
</tr>
<tr>
<td>Url</td>
<td>string</td>
<td>The URL of the result item</td>
</tr>
<tr>
<td>ClickUrl</td>
<td>string</td>
<td>The URL for linking to the result item</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.webresult"></a>38.14.9.10. Zend_Service_Yahoo_WebResult</h4></div></div></div>
<p>
                Each Web Search result is returned as a <code class="code">Zend_Service_Yahoo_WebResult</code> object.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.webresult.properties"></a>38.14.9.10.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.webresult.properties.table-1"></a><p class="title"><b>Table 38.18. Zend_Service_Yahoo_WebResult Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_WebResult Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Summary</td>
<td>string</td>
<td>Result summary</td>
</tr>
<tr>
<td>MimeType</td>
<td>string</td>
<td>Result mimetype</td>
</tr>
<tr>
<td>ModificationDate</td>
<td>string</td>
<td>The last modification date of the result as a UNIX timestamp.</td>
</tr>
<tr>
<td>CacheUrl</td>
<td>string</td>
<td>Yahoo! web cache URL for the result, if it exists.</td>
</tr>
<tr>
<td>CacheSize</td>
<td>int</td>
<td>The size of the Cache entry</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.imageresult"></a>38.14.9.11. Zend_Service_Yahoo_ImageResult</h4></div></div></div>
<p>
                Each Image Search result is returned as a <code class="code">Zend_Service_Yahoo_ImageResult</code> object.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.imageresult.properties"></a>38.14.9.11.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.imageresult.properties.table-1"></a><p class="title"><b>Table 38.19. Zend_Service_Yahoo_ImageResult Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_ImageResult Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Summary</td>
<td>string</td>
<td>Result summary</td>
</tr>
<tr>
<td>RefererUrl</td>
<td>string</td>
<td>The URL of the page which contains the image</td>
</tr>
<tr>
<td>FileSize</td>
<td>int</td>
<td>The size of the image file in bytes</td>
</tr>
<tr>
<td>FileFormat</td>
<td>string</td>
<td>The format of the image (bmp, gif, jpeg, png, etc.)</td>
</tr>
<tr>
<td>Height</td>
<td>int</td>
<td>The height of the image</td>
</tr>
<tr>
<td>Width</td>
<td>int</td>
<td>The width of the image</td>
</tr>
<tr>
<td>Thumbnail</td>
<td><a href="zend.service.yahoo.html#zend.service.yahoo.classes.image" title="38.14.9.17. Zend_Service_Yahoo_Image">Zend_Service_Yahoo_Image</a></td>
<td>Image thumbnail</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.videoresult"></a>38.14.9.12. Zend_Service_Yahoo_VideoResult</h4></div></div></div>
<p>
                Each Video Search result is returned as a <code class="code">Zend_Service_Yahoo_VideoResult</code> object.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.videoresult.properties"></a>38.14.9.12.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.videoresult.properties.table-1"></a><p class="title"><b>Table 38.20. Zend_Service_Yahoo_VideoResult Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_VideoResult Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Summary</td>
<td>string</td>
<td>Result summary</td>
</tr>
<tr>
<td>RefererUrl</td>
<td>string</td>
<td>The URL of the page which contains the video</td>
</tr>
<tr>
<td>FileSize</td>
<td>int</td>
<td>The size of the video file in bytes</td>
</tr>
<tr>
<td>FileFormat</td>
<td>string</td>
<td>The format of the video (avi, flash, mpeg, msmedia, quicktime, realmedia, etc.)</td>
</tr>
<tr>
<td>Height</td>
<td>int</td>
<td>The height of the video in pixels</td>
</tr>
<tr>
<td>Width</td>
<td>int</td>
<td>The width of the video in pixels</td>
</tr>
<tr>
<td>Duration</td>
<td>int</td>
<td>The length of the video in seconds</td>
</tr>
<tr>
<td>Channels</td>
<td>int</td>
<td>Number of audio channels in the video</td>
</tr>
<tr>
<td>Streaming</td>
<td>boolean</td>
<td>Whether the video is streaming or not</td>
</tr>
<tr>
<td>Thumbnail</td>
<td><a href="zend.service.yahoo.html#zend.service.yahoo.classes.image" title="38.14.9.17. Zend_Service_Yahoo_Image">Zend_Service_Yahoo_Image</a></td>
<td>Image thumbnail</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.localresult"></a>38.14.9.13. Zend_Service_Yahoo_LocalResult</h4></div></div></div>
<p>
                Each Local Search result is returned as a <code class="code">Zend_Service_Yahoo_LocalResult</code> object.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.localresult.properties"></a>38.14.9.13.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.localresult.properties.table-1"></a><p class="title"><b>Table 38.21. Zend_Service_Yahoo_LocalResult Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_LocalResult Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Address</td>
<td>string</td>
<td>Street Address of the result</td>
</tr>
<tr>
<td>City</td>
<td>string</td>
<td>City in which the result resides in</td>
</tr>
<tr>
<td>State</td>
<td>string</td>
<td>State in which the result resides in</td>
</tr>
<tr>
<td>Phone</td>
<td>string</td>
<td>Phone number for the result</td>
</tr>
<tr>
<td>Rating</td>
<td>int</td>
<td>User submitted rating for the result</td>
</tr>
<tr>
<td>Distance</td>
<td>float</td>
<td>The distance to the result from your specified location</td>
</tr>
<tr>
<td>MapUrl</td>
<td>string</td>
<td>A URL of a map for the result</td>
</tr>
<tr>
<td>BusinessUrl</td>
<td>string</td>
<td>The URL for the business website, if known</td>
</tr>
<tr>
<td>BusinessClickUrl</td>
<td>string</td>
<td>The URL for linking to the business website, if known</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.newsresult"></a>38.14.9.14. Zend_Service_Yahoo_NewsResult</h4></div></div></div>
<p>
                Each News Search result is returned as a <code class="code">Zend_Service_Yahoo_NewsResult</code> object.
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.newsresult.properties"></a>38.14.9.14.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.newsresult.properties.table-1"></a><p class="title"><b>Table 38.22. Zend_Service_Yahoo_NewsResult Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_NewsResult Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Summary</td>
<td>string</td>
<td>Result summary</td>
</tr>
<tr>
<td>NewsSource</td>
<td>string</td>
<td>The company who distributed the article</td>
</tr>
<tr>
<td>NewsSourceUrl</td>
<td>string</td>
<td>The URL for the company who distributed the article</td>
</tr>
<tr>
<td>Language</td>
<td>string</td>
<td>The language the article is in</td>
</tr>
<tr>
<td>PublishDate</td>
<td>string</td>
<td>The date the article was published as a UNIX timestamp</td>
</tr>
<tr>
<td>ModificationDate</td>
<td>string</td>
<td>The date the article was last modified as a UNIX timestamp</td>
</tr>
<tr>
<td>Thumbnail</td>
<td><a href="zend.service.yahoo.html#zend.service.yahoo.classes.image" title="38.14.9.17. Zend_Service_Yahoo_Image">Zend_Service_Yahoo_Image</a></td>
<td>Image Thumbnail for the article, if it exists</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.inlinkdataresult"></a>38.14.9.15. Zend_Service_Yahoo_InlinkDataResult</h4></div></div></div>
<p>
                Each Inbound Link Search result is returned as a
                <code class="code">Zend_Service_Yahoo_InlinkDatabResult</code> object.
            </p>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.pagedataresult"></a>38.14.9.16. Zend_Service_Yahoo_PageDataResult</h4></div></div></div>
<p>
                Each Page Data Search result is returned as a
                <code class="code">Zend_Service_Yahoo_PageDatabResult</code> object.
            </p>
<p>
                <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
            </p>
</div>
<div class="sect3" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="zend.service.yahoo.classes.image"></a>38.14.9.17. Zend_Service_Yahoo_Image</h4></div></div></div>
<p>
                All images returned either by the Yahoo! Image Search or the Yahoo! News Search
                are represented by <code class="code">Zend_Service_Yahoo_Image</code> objects
            </p>
<div class="sect4" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="zend.service.yahoo.classes.image.properties"></a>38.14.9.17.1. Properties</h5></div></div></div>
<div class="table">
<a name="zend.service.yahoo.classes.image.properties.table-1"></a><p class="title"><b>Table 38.23. Zend_Service_Yahoo_Image Properties</b></p>
<div class="table-contents"><table summary="Zend_Service_Yahoo_Image Properties" border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td>Url</td>
<td>string</td>
<td>Image URL</td>
</tr>
<tr>
<td>Width</td>
<td>int</td>
<td>Image Width</td>
</tr>
<tr>
<td>Height</td>
<td>int</td>
<td>Image Height</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
                    <a href="zend.service.yahoo.html#zend.service.yahoo.classes" title="38.14.9. Zend_Service_Yahoo Classes">Back to Class List</a>
                </p>
</div>
</div>
</div>
</div>
<div class="navfooter"><table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="zend.service.technorati.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="zend.service.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="zend.session.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">38.13. Zend_Service_Technorati </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Chapter 39. Zend_Session</td>
</tr>
</table></div>
<div class="revinfo"></div>
</body>
</html>
